import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [{
    path: "/home",
    component: () => import("../views/home.vue")
},
{
    path: "/cart",
    component: () => import("../views/cart.vue")
},
{
    path: "/cate",
    component: () => import("../views/cate.vue")
},
{
    path: "/vip",
    component: () => import("../views/vip.vue")
}

]

// 3.根据路由规则创建路由信息并导出
export default createRouter({
    routes, //路由规范
    history: createWebHashHistory() //路由模式
})